How to solve a literal equation